import request from '@/utils/request'

// 查询单词库列表
export function listVocabulary_bank(query) {
  return request({
    url: '/word-memory/vocabulary-bank/list',
    method: 'get',
    params: query
  })
}

// 查询单词库详细
export function getVocabulary_bank(id) {
  return request({
    url: '/word-memory/vocabulary-bank/' + id,
    method: 'get'
  })
}

// 新增单词库
export function addVocabulary_bank(data) {
  return request({
    url: '/word-memory/vocabulary-bank',
    method: 'post',
    data: data
  })
}

// 修改单词库
export function updateVocabulary_bank(data) {
  return request({
    url: '/word-memory/vocabulary-bank',
    method: 'put',
    data: data
  })
}

// 删除单词库
export function delVocabulary_bank(id) {
  return request({
    url: '/word-memory/vocabulary-bank/' + id,
    method: 'delete'
  })
}
